package com.wwwarehouse.financialcenter.bean.bill;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Jackie on 2017/11/17.
 * 账单记录请求结果实体
 */

public class BillRecordResponseBean implements Parcelable {

    /**
     * list : [{"billAmount":26000,"billDetail":"10001 笔记本 6台等...","billType":0,"billTypeDesc":"订购商品","billUkid":625948221502107600,"finishTime":1510991361000,"inOrOut":"out","isOverdue":0,"otherSideId":10001240,"otherSideLogo":"http://www.baidu.com.201709892.png","otherSideName":"浙江网仓科技有限公司","paySatus":4,"paySatusDesc":"已付款","payType":0,"payTypeDesc":"下单付","periodTimeDesc":"下单付","planPayTime":1510991427000,"realPayTime":1510993453000,"relationContentIds":[111111111]}]
     * page : 1
     * size : 1
     * total : 1
     */

    private int page;
    private int size;
    private int total;
    private List<BillRecordDetailsBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<BillRecordDetailsBean> getList() {
        return list;
    }

    public void setList(List<BillRecordDetailsBean> list) {
        this.list = list;
    }

    public static class BillRecordDetailsBean implements Parcelable {
        /**
         * billAmount : 26000
         * billDetail : 10001 笔记本 6台等...
         * billType : 0
         * billTypeDesc : 订购商品
         * billUkid : 625948221502107600
         * finishTime : 1510991361000
         * inOrOut : out
         * isOverdue : 0
         * otherSideId : 10001240
         * otherSideLogo : http://www.baidu.com.201709892.png
         * otherSideName : 浙江网仓科技有限公司
         * paySatus : 4
         * paySatusDesc : 已付款
         * payType : 0
         * payTypeDesc : 下单付
         * periodTimeDesc : 下单付
         * planPayTime : 1510991427000
         * realPayTime : 1510993453000
         * relationContentIds : [111111111]
         */
        private String businessId;
        private String billAmount;
        private String billDetail;
        private String billType;
        private String billTypeDesc;
        private String billUkid;
        private String finishTime;
        private String inOrOut;
        private String isOverdue;
        private String otherSideId;
        private String otherSideLogo;
        private String otherSideName;
        private String paySatus;
        private String paySatusDesc;
        private String payType;
        private String payTypeDesc;
        private String periodTimeDesc;
        private String planPayTime;
        private String realPayTime;
        private List<String> relationContentIds;

        public String getBusinessId() {
            return businessId;
        }

        public void setBusinessId(String businessId) {
            this.businessId = businessId;
        }

        public String getBillAmount() {
            return billAmount;
        }

        public void setBillAmount(String billAmount) {
            this.billAmount = billAmount;
        }

        public String getBillDetail() {
            return billDetail;
        }

        public void setBillDetail(String billDetail) {
            this.billDetail = billDetail;
        }

        public String getBillType() {
            return billType;
        }

        public void setBillType(String billType) {
            this.billType = billType;
        }

        public String getBillTypeDesc() {
            return billTypeDesc;
        }

        public void setBillTypeDesc(String billTypeDesc) {
            this.billTypeDesc = billTypeDesc;
        }

        public String getBillUkid() {
            return billUkid;
        }

        public void setBillUkid(String billUkid) {
            this.billUkid = billUkid;
        }

        public String getFinishTime() {
            return finishTime;
        }

        public void setFinishTime(String finishTime) {
            this.finishTime = finishTime;
        }

        public String getInOrOut() {
            return inOrOut;
        }

        public void setInOrOut(String inOrOut) {
            this.inOrOut = inOrOut;
        }

        public String getIsOverdue() {
            return isOverdue;
        }

        public void setIsOverdue(String isOverdue) {
            this.isOverdue = isOverdue;
        }

        public String getOtherSideId() {
            return otherSideId;
        }

        public void setOtherSideId(String otherSideId) {
            this.otherSideId = otherSideId;
        }

        public String getOtherSideLogo() {
            return otherSideLogo;
        }

        public void setOtherSideLogo(String otherSideLogo) {
            this.otherSideLogo = otherSideLogo;
        }

        public String getOtherSideName() {
            return otherSideName;
        }

        public void setOtherSideName(String otherSideName) {
            this.otherSideName = otherSideName;
        }

        public String getPaySatus() {
            return paySatus;
        }

        public void setPaySatus(String paySatus) {
            this.paySatus = paySatus;
        }

        public String getPaySatusDesc() {
            return paySatusDesc;
        }

        public void setPaySatusDesc(String paySatusDesc) {
            this.paySatusDesc = paySatusDesc;
        }

        public String getPayType() {
            return payType;
        }

        public void setPayType(String payType) {
            this.payType = payType;
        }

        public String getPayTypeDesc() {
            return payTypeDesc;
        }

        public void setPayTypeDesc(String payTypeDesc) {
            this.payTypeDesc = payTypeDesc;
        }

        public String getPeriodTimeDesc() {
            return periodTimeDesc;
        }

        public void setPeriodTimeDesc(String periodTimeDesc) {
            this.periodTimeDesc = periodTimeDesc;
        }

        public String getPlanPayTime() {
            return planPayTime;
        }

        public void setPlanPayTime(String planPayTime) {
            this.planPayTime = planPayTime;
        }

        public String getRealPayTime() {
            return realPayTime;
        }

        public void setRealPayTime(String realPayTime) {
            this.realPayTime = realPayTime;
        }

        public List<String> getRelationContentIds() {
            return relationContentIds;
        }

        public void setRelationContentIds(List<String> relationContentIds) {
            this.relationContentIds = relationContentIds;
        }

        public BillRecordDetailsBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.businessId);
            dest.writeString(this.billAmount);
            dest.writeString(this.billDetail);
            dest.writeString(this.billType);
            dest.writeString(this.billTypeDesc);
            dest.writeString(this.billUkid);
            dest.writeString(this.finishTime);
            dest.writeString(this.inOrOut);
            dest.writeString(this.isOverdue);
            dest.writeString(this.otherSideId);
            dest.writeString(this.otherSideLogo);
            dest.writeString(this.otherSideName);
            dest.writeString(this.paySatus);
            dest.writeString(this.paySatusDesc);
            dest.writeString(this.payType);
            dest.writeString(this.payTypeDesc);
            dest.writeString(this.periodTimeDesc);
            dest.writeString(this.planPayTime);
            dest.writeString(this.realPayTime);
            dest.writeList(this.relationContentIds);
        }

        protected BillRecordDetailsBean(Parcel in) {
            this.businessId = in.readString();
            this.billAmount = in.readString();
            this.billDetail = in.readString();
            this.billType = in.readString();
            this.billTypeDesc = in.readString();
            this.billUkid = in.readString();
            this.finishTime = in.readString();
            this.inOrOut = in.readString();
            this.isOverdue = in.readString();
            this.otherSideId = in.readString();
            this.otherSideLogo = in.readString();
            this.otherSideName = in.readString();
            this.paySatus = in.readString();
            this.paySatusDesc = in.readString();
            this.payType = in.readString();
            this.payTypeDesc = in.readString();
            this.periodTimeDesc = in.readString();
            this.planPayTime = in.readString();
            this.realPayTime = in.readString();
            this.relationContentIds = new ArrayList<String>();
            in.readList(this.relationContentIds, Integer.class.getClassLoader());
        }

        public static final Creator<BillRecordDetailsBean> CREATOR = new Creator<BillRecordDetailsBean>() {
            @Override
            public BillRecordDetailsBean createFromParcel(Parcel source) {
                return new BillRecordDetailsBean(source);
            }

            @Override
            public BillRecordDetailsBean[] newArray(int size) {
                return new BillRecordDetailsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeList(this.list);
    }

    public BillRecordResponseBean() {
    }

    protected BillRecordResponseBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = new ArrayList<BillRecordDetailsBean>();
        in.readList(this.list, BillRecordDetailsBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<BillRecordResponseBean> CREATOR = new Parcelable.Creator<BillRecordResponseBean>() {
        @Override
        public BillRecordResponseBean createFromParcel(Parcel source) {
            return new BillRecordResponseBean(source);
        }

        @Override
        public BillRecordResponseBean[] newArray(int size) {
            return new BillRecordResponseBean[size];
        }
    };
}
